
<div class="row num border">
	<div class="col-xs-12 ">
		<div class="form-group">
			<label class="control-label col-sm-2" title="">
				<span class="required ">*</span> ${text('任务内容')}：<i class="fa icon-question hide"></i></label>
			<div class="col-sm-10">
				<#form:textarea id="taskContent5" path="taskContent" rows="5" placeholder="任务内容，限制1000字以内" class="form-control required" style="white-space: pre-line;" maxlength="1000"/>
			</div>
		</div>
	</div>

	<div class="col-xs-12">

		<div class="form-group">
			<label class="control-label col-sm-2" title="">
				<span class="required ">*</span> ${text('起止时间')}：<i
					class="fa icon-question hide"></i></label>
			<div class="col-sm-10">
				<div class="form-inline" style="padding-left: 0px !important;margin: 0px !important;">
					<#form:input id="taskStartTime5" path="taskStartTime" readonly="true" maxlength="20" class="form-control laydate required"
					dataFormat="datetime" data-type="datetime" data-format="yyyy-MM-dd HH:mm" style="width:245px" placeholder="开始时间" data-done="taskTimeChange(5)"/>
					至
					<#form:input id="taskEndTime5"  path="taskEndTime" readonly="true" maxlength="20" class="form-control laydate required dateCheck"
					dataFormat="datetime" data-type="datetime" data-format="yyyy-MM-dd HH:mm" style="width:245px" placeholder="结束时间"/>
				</div>
			</div>
		</div>
	</div>
	<!--<div class="col-xs-6">
		<div class="form-group">
			<label class="control-label col-sm-4" title="">
				<span class="required hide">*</span> ${text('督办要求')}：<i class="fa icon-question hide"></i></label>
			<div class="col-sm-8">
				<#form:hidden  id="taskRequireName5" path="taskRequireName" />
				<#form:select id="taskRequireCode5" path="taskRequireCode" dictType="dc_task_require" blankOption="false"
				class="form-control required" />
			</div>
		</div>
	</div>-->
	<div class="col-xs-12">
		<div class="form-group">
			<label class="control-label col-sm-2" title="">
				<span class="required hide">*</span> ${text('督办要求')}：<i class="fa icon-question hide"></i></label>
			<div class="col-sm-10">
				<#form:textarea path="taskRequireName" rows="3" class="form-control" autocomplete="off" maxlength="1000" placeholder="督办要求，限制1000字以内" />
			</div>
		</div>
	</div>
	<div class="col-xs-12">
		<div class="form-group">
			<label class="control-label col-sm-2" title="">
				<span class="required ">*</span> ${text('牵头责任单位')}：<i class="fa icon-question hide"></i></label>
			</label>
			<div class="col-sm-10">
				<#form:textarea path="taskLeaderOrg5Base" rows="5" class="form-control required" autocomplete="off" maxlength="1000" readonly="true" placeholder="请选择牵头责任单位" />
				<#form:treeselect   title="${text('牵头责任单位')}" allowClear='true' id="taskLeaderOrg5"
				path="taskLeaderOrg" labelName="taskLeaderOrgName" labelValue="${officeName!}" labelPath="taskLeaderOrgName"
				url="${ctx}/sys/office/treeUnitData"
				class=" hideUnit" isReturnValue="false" allowClear="true" canSelectRoot="true" canSelectParent="true"
				returnFullName="false" checkbox="true" chkboxType="{'Y':'','N':''}"
				callbackFuncName='treeselectCallback'
				placeholder="请选择牵头责任单位"/>
			</div>
		</div>
	</div>
	<div class="col-xs-12">
		<div class="form-group">
			<label class="control-label col-sm-2" title="">
				<span class="required hide">*</span><i class="fa icon-question hide"></i></label>
			<div class="col-sm-10">

				<a onclick="fixGroup()"  class="btn btn-primary btn-sm mr10 mb10" style="background-color:#00B7EE;border-color: #00b7ee" >维护常用组</a>


				<a onclick="importGroup(5)"  class="btn btn-primary btn-sm mr10 mb10" style="background-color:#00B7EE;border-color: #00b7ee" >导入常用组</a>

			</div>
		</div>
	</div>
	<div class="col-xs-6">
		<div class="form-group">
			<label class="control-label col-sm-4" title="">
				<span class="required hide">*</span> ${text('协同单位')}：<i class="fa icon-question hide"></i></label>
			<div class="col-sm-8">
				<#form:treeselect  title="${text('协同单位')}" id="taskCoopOrg5"
				path="taskCoopOrg" labelName="taskCoopOrgName" labelValue="${officeName!}" labelPath="taskCoopOrgName"
				url="${ctx}/sys/office/treeUnitData" type="text"
				 isReturnValue="false" allowClear="true" canSelectRoot="true" canSelectParent="true"
				returnFullName="false" checkbox="true" chkboxType="{'Y':'','N':''}"
				placeholder="请选择协同单位"/>
			</div>
		</div>
	</div>
	<div class="col-xs-6">
		<div class="form-group">
			<label class="control-label col-sm-4" title="">
				<span class="required ">*</span> ${text('督办人')}：<i class="fa icon-question hide"></i></label>
			<div class="col-sm-8">
				<#form:select id="taskSupUser5" path="taskSupUser" items="${taskSupUser!}"  blankOption="true" data-placeholder="请选择督办人" itemLabel="userName" itemValue="userCode" class="form-control width-120 required" />
				<#form:hidden id="taskSupUserName5" path="taskSupUserName" />
			</div>
		</div>
	</div>

	<div class="col-xs-6">
		<div class="form-group">
			<label class="control-label col-sm-4" title="">
				<span class="required ">*</span> ${text('督办科室')}：<i class="fa icon-question hide"></i></label>
			<div class="col-sm-8">
				<#form:select id="taskSupOrg5" path="taskSupOrg" dictType="dc_task_department"  blankOption="true" data-placeholder="请选择督办科室"  class="form-control width-120 required" />
				<#form:hidden id="taskSupOrgName5" path="taskSupOrgName" />
			</div>
		</div>
	</div>
	<div class="col-xs-6" >
		<div class="form-group">
			<label class="control-label col-sm-4" title="">
				<span class="required hide">*</span> 牵头领导：<i class="fa icon-question hide"></i></label>
			<div class="col-sm-8">
				<#form:select  path="taskLeader5" items="${userList!}" blankOption="true" data-placeholder="请选择牵头领导" itemLabel="userName" itemValue="userCode" class="form-control width-120 " multiple="true"/>
				<#form:hidden  id="taskLeaderName5"  path="taskLeaderName"/>
				<#form:hidden  id="taskLeader_5" path="taskLeader"/>
			</div>
		</div>
	</div>
<!--	<div class="col-xs-6">
		<div class="form-group">
			<label class="control-label col-sm-4" title="">
				<span class="required ">*</span> ${text('牵头责任单位')}：<i class="fa icon-question hide"></i></label>
			<div class="col-sm-8">
				<#form:treeselect  title="${text('牵头责任单位')}" id="taskLeaderOrg5"
				path="taskLeaderOrg" labelName="taskLeaderOrgName" labelValue="${officeName!}" labelPath="taskLeaderOrgName"
				url="${ctx}/sys/office/treeUnitData" type="text"
				class="required" isReturnValue="false" allowClear="true" canSelectRoot="true" canSelectParent="true"
				returnFullName="false" checkbox="true" chkboxType="{'Y':'','N':''}"
				placeholder="请选择牵头责任单位"/>
			</div>
		</div>
	</div> -->
	<div class="col-xs-6">
		<div class="form-group">
			<label class="control-label col-sm-4" title="">
				<span class="required hide">*</span> ${text('联系人')}：<i class="fa icon-question hide"></i></label>
			<div class="col-sm-8">
				<#form:input id="contactName5" path="contactName" maxlength="64" value="${dcSupTaskInfo.contactName}" class="form-control" placeholder="联系人"/>
			</div>
		</div>
	</div>
	<div class="col-xs-6">
		<div class="form-group">
			<label class="control-label col-sm-4" title="">
				<span class="required hide">*</span> ${text('联系电话')}：<i class="fa icon-question hide"></i></label>
			<div class="col-sm-8">
				<#form:input id="contactPhone5" path="contactPhone" maxlength="64" value="${dcSupTaskInfo.contactPhone}" class="form-control" placeholder="联系电话"/>
			</div>
		</div>
	</div>
	<div class="col-xs-6" >
		<div class="form-group">
			<label class="control-label col-sm-4" title="">
				<span class="required hide">*</span> ${text('排序编号')}：<i class="fa icon-question hide"></i></label>
			<div class="col-sm-8">
				<#form:input id="sortNum5" path="sortNum" maxlength="10" min="1" class="form-control digits" placeholder="排序编号"/>
			</div>
		</div>
	</div>
	<div class="col-xs-6">
		<div class="form-group">
			<label class="control-label col-sm-4" title="">
				<span class="required ">*</span>${text('反馈时间要求')}：<i
					class="fa icon-question hide"></i></label>
			<div class="col-sm-8">
				<#form:select id="feedbackWay5" path="feedbackWay" blankOption="true" data-placeholder="请选择反馈时间要求" dictType="dc_feedback_circle_type"  onchange="feedbackCircle(5)" class="form-control required" defaultValue='4'/>
			</div>
		</div>
	</div>
	<div class="col-xs-6" >
		<div class="form-group" id="feedbackRateShow5">
			<label class="control-label col-sm-4" title="">
				<span class="required hide">*</span><text id ="yearMonth5"></text><i class="fa icon-question hide"></i></label>
			<div class="col-sm-8 " style="display: flex;line-height: 27px;" id="isshow">
				<#form:select id="feedbackRate5" path="feedbackRate"  blankOption="true" maxlength="2" class="form-control" onchange="getMutiFeedBackTimes(5)"/>
			</div>
		</div>
	</div>
	<div class="row multipleFeedback">
		<div class="col-xs-12">
			<div class="form-group">
				<label class="control-label col-sm-2">
					<span class="required hide">*</span> </label>
				<div class="col-sm-10 num1">
					<table id="scheBusiTaskFeedbackDataGrid5"></table>
					<a href="#" id="testDataChildDataGridAddRowBtn5" class="btn btn-primary btn-sm mt10 mb10"><i class="fa fa-plus"></i> 增加固定反馈时间</a>
				</div>
			</div>
		</div>
	</div>
</div>

<script>
	function fixGroup(){
		js.layer.open({
			type: 2,
			title: ['维护常用组', 'font-size:18px; color:orange;'],
			area: ['800px', '500px'],
			scrollbar: true,
			shadeClose: false,
			content: "${ctx}/task/dcSupTaskGroup/list",
			btn1: function (index, layero) {
			},
			end:function () {

			}
		});

	}

	function importGroup(num){
		var radioHtml='';
		$.ajax({
			url: "${ctx}/task/dcSupTaskGroup/groupList",
			type: "get",
			cache: false,
			async:false,
			success: function(data){
				$.each(data,function(index,item){
					radioHtml= radioHtml+'<div class="dbd"><input type="radio" name="groupId" value="'+item.id+'"/><span class="xbd">'+item.groupName+'</span></div> '
				})

			}
		});
		layer.open({
			type: 1
			,title: ['导入常用组', 'font-size:18px; color:orange;'] //不显示标题栏
			,btn: ['确认', '取消']
			,btnAlign: 'c'
			,area: '500px;'
			,moveType: 1 //拖拽模式，0或者1
			,content: radioHtml

			,yes: function(layero){

				$.ajax({
					url: "${ctx}/task/dcSupTaskGroupUnit/radio",
					type: "post",
					cache: false,
					async:false,
					data: {
						"groupId":$("[name='groupId']").filter(":checked").val()

					},
					success: function(data){
						$("#taskLeaderOrg"+num+"Base").val(data.unitNames)
						$("#taskLeaderOrg"+num+"Code").val(data.unitCodes)
						$("#taskLeaderOrg"+num+"Name").val(data.unitNames)
					}
				});


			}
		});

	}
</script>
